package wsz.rocketMq;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 启动类
 * @author wsz
 * @date 2022/3/2 10:27
 **/
@EnableScheduling
@SpringBootApplication
public class RocketMqWorkApplication extends SpringBootServletInitializer {
    public static void main(String[] args) {
        SpringApplication.run(RocketMqWorkApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(RocketMqWorkApplication.class);
    }
}
